package com.t18;

import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.IOException;

/**
 * Created by xuyiwei on 2018/9/1.
 */
public class TestEOF {
    public static void main(String[] args) throws IOException {
        DataInputStream in = new DataInputStream(new ByteArrayInputStream(
                BufferedInputFile.read(
                        "/Users/xuyiwei/Documents/javaBase/jdk/src/com/t18/FormattednMemoryInput.java").getBytes()));
        while (in.available()!=0){
            System.out.print((char)in.readByte());
        }
    }
}
